<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>会员注册页面</title>
<style type="text/css">
	.login_form{
		height:420px;
		margin-top: 25px;
	}
</style>
</head>
<body>
	<form action="userServlet" method="post">
		<label>验证码：</label>
		<input class="itxt" type="text" style="width: 150px;" id="code" name="code"/>
		<img id="code_img" src="${pageContext.request.contextPath}/kaptchaServlet"
			 alt="看不清，换一张"
			 style="height:30px "/>
		<br/>
		<input type="submit" value="注册" id="sub_btn" />
	</form>
</body>
</html>
<script src="js/jquery.js"></script>
<script type="text/javascript">
	// 页面加载完成之后
	$(function(){
		// 给验证码的图片， 绑定单击事件
		$("#code_img").click(function(){
			$(this).attr("src","kaptchaServlet?d="+new Date());
		});
	});
</script>